﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SIS_Wcf_Server.Model;
using SIS_Wcf_Server.Search;

namespace SIS_Wcf_Server
{
    public class DefaultFactory : IFactory
    {
        public Model.IData GetData()
        {
            return new EfData();
        }

        public ISearch GetSearcher(IData data)
        {
            ISearch result = new DefaultSearch(data);
            result = new ExtendedSearchDecorator( data, result, "wifissid", "GSMCellId" );
            return result;
        }

    }
}